let data = {
    list: [
        {
            "calssId": "0001",
            "classMajor": "计算机",
            "className": "一班",
            "classNum": "50",
            "classInstructo": "张三",
            "classStareDate": "2022-09-11",
            "classLength": "0",
            "classStatus": "1",
            "createName": "1",
            "updateName": "1",
            "createTime": "2022-09-11 16:30:00",
            "updateTime": "2022-09-11 16:30:00",
            "id": "1"
        },
        {
            "calssId": "0002",
            "classMajor": "音乐",
            "className": "二班",
            "classNum": "80",
            "classInstructo": "李四",
            "classStareDate": "2022-09-11",
            "classLength": "1",
            "classStatus": "0",
            "createName": "1",
            "updateName": "1",
            "createTime": "2022-09-11 16:30:00",
            "updateTime": "2022-09-11 16:30:00",
            "id": "2"
        },
        {
            "calssId": "0003",
            "classMajor": "法律",
            "className": "三班",
            "classNum": "70",
            "classInstructo": "王五",
            "classStareDate": "2022-09-11",
            "classLength": "1",
            "classStatus": "1",
            "createName": "1",
            "updateName": "1",
            "createTime": "2022-09-11 16:30:00",
            "updateTime": "2022-09-11 16:30:00",
            "id": "3"
        },
    ]
}

module.exports = [
    //
    {
        url: "/class/getClassNameList",
        type: "get",
        response: config => {
            //参数  config.body
            return {
                statusCode: 200,
                data: data,
                msg: "OK"
            };
        }
    },
    //班级列表
    {
        url: "/class/getClassList",
        type: "post",
        response: config => {
            //参数  config.body
            const { pageIndex = 1, pageSize = 10 } = config.body;
            data.pageIndex = pageIndex;
            data.pageSize = pageSize;
            return {
                statusCode: 200,
                data: data,
                msg: "OK"
            };
        }
    },
    //添加班级
    {
        url: "/class/addClass",
        type: "post",
        response: config => {
            //参数  config.body
            const { classInfo } = config.body;
            console.log("add", classInfo);
            return {
                statusCode: "200",
                msg: "成功",
                data: []
            };
        }
    },
    //更新班级
    {
        url: "/class/updateClass",
        type: "post",
        response: config => {
            //参数  config.body
            const { classInfo } = config.body;
            console.log("update", classInfo);
            return {
                statusCode: "200",
                msg: "成功",
                data: []
            };
        }
    },
    //删除班级
    {
        url: "/class/deleteClass",
        type: "post",
        response: config => {
            //参数  config.body
            const { id } = config.body;
            console.log("del", id);
            return {
                statusCode: "200",
                msg: "成功",
                data: []
            };
        }
    }
];
